﻿<UserControl 
    x:Class="Caliburn.Micro.BikeWizard.Views.BikeSummaryView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <Style TargetType="TextBlock" x:Key="textStyle">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Margin" Value="7,0,0,7" />
        </Style>

        <!--this style inherits from the above style-->
        <Style BasedOn="{StaticResource textStyle}" TargetType="TextBlock" x:Key="headerTextStyle">
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
    </UserControl.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <TextBlock
            Grid.Column="0"
            Grid.Row="0"
            Text="Type"
            Style="{StaticResource headerTextStyle}" 
            />
        <TextBlock
            Grid.Column="0"
            Grid.Row="1"
            Text="Frame Size"
            Style="{StaticResource headerTextStyle}" 
            />
        <TextBlock
            Grid.Column="0"
            Grid.Row="3"
            Text="Parts Group"
            Style="{StaticResource headerTextStyle}"
            />
        <TextBlock
            Grid.Column="0"
            Grid.Row="2"
            Text="Extras"
            Style="{StaticResource headerTextStyle}" 
            />
        <TextBlock
            x:Name="BikeType"
            Grid.Column="1"
            Grid.Row="0"
            Style="{StaticResource textStyle}"
            />
        <TextBlock
            x:Name="FrameSize"
            Grid.Column="1"
            Grid.Row="1"
            Style="{StaticResource textStyle}"
            />
        <TextBlock
            x:Name="PartsGroup"
            Grid.Column="1"
            Grid.Row="2"
            Style="{StaticResource textStyle}"
            />
        <TextBlock
            x:Name="Extras"
            Grid.Column="1"
            Grid.Row="3"
            TextWrapping="Wrap"
            Style="{StaticResource textStyle}"
            />
    </Grid>
</UserControl>
